Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 3 - Geometric Styles / Geometric Styles Reference
Constants and Data Types


Pattern Attributes

Each pattern structure contains a set of flags that modify the way a shape is patterned. These constants are defined in the gxPatternAttributes enumeration:

enum gxPatternAttributes {
   gxPortAlignPattern = 0x0001, 
   gxPortMapPattern   = 0x0002  
};
typedef long gxPatternAttribute;
Constant descriptions

gxPortAlignPattern
Indicates that QuickDraw GX should align the pattern shapes with the view device instead of the patterned shape. When this attribute is set, the pattern does not move when the patterned shape moves. Instead, the position of the pattern stays constant with respect to the view device. In effect, the patterned shape allows you to see through to a constant background covered by the pattern shape.
gxPortMapPattern
Indicates that mappings in the patterned shape's transform affect the patterned shape but do not affect the pattern. As an example, imagine that the transform of the patterned shape specifies that the patterned shape be scaled up by a factor of 2. If the gxPortMapPattern attribute is not set, then the pattern itself is magnified as well as the patterned shape. If this attribute is set, then the pattern stays the same size, but the patterned shape shows more of the pattern.
See the section "Patterns" on page 3-31 for an example of these attributes.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help